<%@ tag pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ attribute name="id" required="true"%>
<%@ attribute name="caption" required="true"%>
<%@ attribute name="name" required="false"%>

<div class="form-group">
    <label class="control-label col-sm-4">${caption}</label>
    <div class="col-sm-8">
        <input type="text" class="form-control" id="${id}" name="${empty name? id : name}"
               data-bv-notempty data-bv-ip/>
    </div>
</div>